﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

/* Copyright (c) 2014
 * author: Ricky Kratochwil
 * @ date: 2014-06-25
 * @ summary: Simple pause menu with options
*/


namespace GameOfCoins
{
	public partial class PauseMenu : Form
	{

		private GameMainFrame	m_oMainFrame;		//Use for altering calls

		public PauseMenu(GameMainFrame oMainFrame)
		{
			InitializeComponent();

			m_oMainFrame = oMainFrame;
		}


//////////////////////////////////////////////////////////////////////////////////////////////////////
////////// EVENTS

		//Capture pressed keys
		// - Close on Esc
		//@ KR / 2014.06.25
		private void PauseMenu_KeyDown(object sender, KeyEventArgs e)
		{
			if(e.KeyCode == Keys.Escape)	//Pause menu
			{
				DialogResult = DialogResult.OK;
			}
		}

        private void button1_Click(object sender, EventArgs e)
        {
            Instruction instructionDialog = new Instruction();
            instructionDialog.ShowDialog();
            
        }
	}
}
